<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<body>
<nav  role="navigation" id="sidebar" class="sidebar" th:fragment="sidebar">
    <div class="js-sidebar-content">
        <header class="logo hidden-xs">
            <img style="width:30%;" th:src="@{/img/logo.jpg}">
        </header>
        <ul class="sidebar-nav">
            <li class="active">
                <a href="#sidebar-dashboard" data-toggle="collapse" data-parent="#sidebar">
                    <span class="icon">
                        <i class="fa fa-desktop"></i>
                    </span>
                    苗圃总览
                    <i class="toggle fa fa-angle-down"></i>
                </a>
                <ul id="sidebar-dashboard" class="collapse in">
                    <li><a th:href="@{/admin/areaLocation/data}">苗圃数据</a></li>
                    <!--<li><a th:href="@{/admin/areaLocation/addDelete}">地块增减</a></li>-->
                    <shiro:hasAnyRoles name="admin">
                        <li><a th:href="@{/admin/areaLocation/update}">地块增减</a></li>
                        <li><a th:href="@{/admin/areaLocation/divide}">地块划分</a></li>
                    </shiro:hasAnyRoles>
                </ul>
            </li>
            <li>
                <a class="collapsed" href="#sidebar-maps" data-toggle="collapse" data-parent="#sidebar">
                    <span class="icon">
                        <i class="fa fa-search"></i>
                    </span>
                    我要搜索
                    <i class="toggle fa fa-angle-down"></i>
                </a>
                <ul id="sidebar-maps" class="collapse">
                    <li><a th:href="@{/admin/landMass/seek}">树种搜素</a></li>
                    <li><a th:href="@{/admin/landMass/manage}">地块搜索</a></li>
                    <li><a th:href="@{/admin/landMass/remarks/seek}">备注搜索</a></li>
                </ul>
            </li>
            <li>
                <a class="collapsed" href="#sidebar-ui" data-toggle="collapse" data-parent="#sidebar">
                    <span class="icon">
                        <i class="glyphicon glyphicon-tree-conifer"></i>
                    </span>
                    出入库记录
                    <i class="toggle fa fa-angle-down"></i>
                </a>
                <ul id="sidebar-ui" class="collapse">
                    <li><a th:href="@{/admin/tree/put}">入库记录</a></li>
                    <li><a th:href="@{/admin/tree/out}">出库记录</a></li>
                </ul>
            </li>
            <shiro:hasAnyRoles name="admin,finance">
                <li>
                    <a class="collapsed" href="#sidebar-finance" data-toggle="collapse" data-parent="#sidebar">
                        <span class="icon">
                            <i class="fa fa-jpy"></i>
                        </span>
                        财务管理
                        <i class="toggle fa fa-angle-down"></i>
                    </a>
                    <ul id="sidebar-finance" class="collapse">
                        <li><a th:href="@{/admin/finance/put}">入库管理</a></li>
                        <li><a th:href="@{/admin/finance/out}">出库管理</a></li>
                        <li><a th:href="@{/admin/finance/batch}">批次列表</a></li>
                        <li><a th:href="@{/admin/finance/mark}">号苗管理</a></li>
                        <li><a th:href="@{/admin/finance/die}">死苗管理</a></li>
                        <li><a th:href="@{/admin/finance/cost}">成本管理</a></li>
                        <li><a th:href="@{/admin/finance/update}">更新管理</a></li>
                        <li><a th:href="@{/admin/finance/setting}">死亡率设定</a></li>
                    </ul>
                </li>
            </shiro:hasAnyRoles>
                <li>
                    <a class="collapsed" href="#sidebar-extra" data-toggle="collapse" data-parent="#sidebar">
                        <span class="icon">
                            <i class="fa fa-desktop"></i>
                        </span>
                        操作
                        <i class="toggle fa fa-angle-down"></i>
                    </a>
                    <ul id="sidebar-extra" class="collapse">
                        <li><a th:href="@{/admin/landMass/put}">苗木入库</a></li>
                        <li><a th:href="@{/admin/landMass/out}">苗木出库</a></li>
                        <li><a th:href="@{/admin/landMass/sign}">号苗</a></li>
                        <li><a th:href="@{/admin/landMass/die}">死苗</a></li>
                    </ul>
                </li>
            <shiro:hasAnyRoles name="admin">
                <li>
                    <a class="collapsed" href="#sidebar-levels" data-toggle="collapse" data-parent="#sidebar">
                        <span class="icon">
                            <i class="glyphicon glyphicon-user"></i>
                        </span>
                        用户管理
                        <i class="toggle fa fa-angle-down"></i>
                    </a>
                    <ul id="sidebar-levels" class="collapse">
                        <li><a th:href="@{/admin/admin}">后台管理员</a></li>
                        <li><a th:href="@{/admin/appAdmin}">APP用户</a></li>
                    </ul>
                </li>
                <li>
                    <a class="collapsed" href="#sidebar-forms" data-toggle="collapse" data-parent="#sidebar">
                        <span class="icon">
                            <i class="glyphicon glyphicon-align-right"></i>
                        </span>
                        日志管理
                        <i class="toggle fa fa-angle-down"></i>
                    </a>
                    <ul id="sidebar-forms" class="collapse">
                        <li><a th:href="@{/admin/log/examine}">查看日志</a></li>
                    </ul>
                </li>
             </shiro:hasAnyRoles>
        </ul>
    </div>
</nav>
</body>
</html>